﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	x:Class="EAppointmentsWPF.PatientDetailsClass"
	x:Name="PatientDetailsControl"
	Width="236.963" Height="Auto" Background="#FFFFFFFF" Foreground="#00FFFFFF" Loaded="PatientDetailsControl_Loaded">

	<UserControl.Resources>
		<ResourceDictionary>

            	<!-- Dictionaries-->
            	<ResourceDictionary.MergedDictionaries>
	                <ResourceDictionary Source="..\Resources\ControlStyles\Brushes.xaml"/>
                	<ResourceDictionary Source="..\Resources\ControlStyles\Buttons.xaml"/>
                	<ResourceDictionary Source="..\Resources\ControlStyles\ComboBox.xaml"/>
                	<ResourceDictionary Source="..\Resources\ControlStyles\CheckBox.xaml"/>
                    <ResourceDictionary Source="..\Resources\ControlStyles\DatePicker.xaml"/>
                	<ResourceDictionary Source="..\Resources\ControlStyles\ListBox.xaml"/>
					<ResourceDictionary Source="..\Resources\ControlStyles\ListView.xaml"/>
                	<ResourceDictionary Source="..\Resources\ControlStyles\Styles.xaml"/>
            	</ResourceDictionary.MergedDictionaries>
			
		<Storyboard x:Key="ExpandPatientDetails">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PatientDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.001"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PatientDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-37.5"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="CollapsePatientDetails">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PatientDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PatientDetails" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="-50.5"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PatientDetails" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="00:00:00.5000000" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		</ResourceDictionary>
	</UserControl.Resources>

	<UserControl.Triggers>
		<EventTrigger RoutedEvent="ButtonBase.Click" SourceName="btnMore">
			<BeginStoryboard x:Name="ExpandPatientDetails_BeginStoryboard" Storyboard="{StaticResource ExpandPatientDetails}"/>
			<StopStoryboard BeginStoryboardName="CollapsePatientDetails_BeginStoryboard1"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="ButtonBase.Click" SourceName="btnDonePatientDetails">
			<BeginStoryboard x:Name="CollapsePatientDetails_BeginStoryboard1" Storyboard="{StaticResource CollapsePatientDetails}"/>
			<StopStoryboard BeginStoryboardName="ExpandPatientDetails_BeginStoryboard"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Border BorderBrush="{DynamicResource ControlsBorderBrush}" BorderThickness="4,4,4,4">

		<Grid x:Name="LayoutRoot" Width="Auto" Height="Auto">
			<Border VerticalAlignment="Top" Height="31.5" Background="{DynamicResource ControlsHeaderBrush}" BorderThickness="0,0,0,0" BorderBrush="{DynamicResource ControlsBorderBrush}">
				<TextBlock HorizontalAlignment="Left" Margin="5,4,0,0" Width="136" Height="24" Background="{x:Null}" FontSize="16" FontWeight="Bold" Foreground="{DynamicResource LightBlueFontBrush}" Text="Details" TextWrapping="Wrap"/>
			</Border>
			<ScrollViewer Margin="0,31.5,0,0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
				<Grid Width="Auto" Height="Auto">
					<Grid.Background>
						<LinearGradientBrush EndPoint="0.5,0.984" StartPoint="0.5,-0.008">
							<GradientStop Color="#FFFFFFFF" Offset="0.024"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
							<GradientStop Color="#FF909192" Offset="0.005"/>
						</LinearGradientBrush>
					</Grid.Background>
					<Border HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" Width="96" Height="109" Background="#FFCCD7EC">
						<Border.BitmapEffect>
							<DropShadowBitmapEffect/>
						</Border.BitmapEffect>
						<Image Width="Auto" Height="Auto" Source="..\Resources\Images\1.JPG"/>
					</Border>
					<TextBlock Height="19" FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="Name:" TextWrapping="Wrap" Margin="122,8,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="34.947"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="John Thames" TextWrapping="Wrap" Margin="122,31,0,0" VerticalAlignment="Top" x:Name="txtName" Height="48" HorizontalAlignment="Left" Width="83.963"/>
					<Button x:Name="btnMore" Style="{DynamicResource BlueGradientButtonStyle}" Content="More" Foreground="#FFFFFFFF" Margin="122,93,0,0" VerticalAlignment="Top" Height="24" Click="btnMore_Click" HorizontalAlignment="Left" Width="69"/>
					<ComboBox HorizontalAlignment="Left" Margin="20,159,0,0" x:Name="cbDetailsActions" Style="{DynamicResource ComboBoxToggleButton}" VerticalAlignment="Top" Width="84" Height="28" IsSynchronizedWithCurrentItem="True" FontSize="11">
						<ComboBoxItem Margin="0,1,0,0" Height="18" Content="Book Slot"/>
						<ComboBoxItem Margin="0,3,0,0" Height="18" Content="Rebook Slot"/>
						<ComboBoxItem Margin="0,1,0,0" Height="18" Content="Cancel"/>
						<ComboBoxItem Margin="0,3,0,0" Height="18" Content="Delete"/>
						<ComboBoxItem Margin="0,2,0,0" Height="18" Content="Approve"/>
						<ComboBoxItem Margin="0,2,0,1" Height="18" Content="Reject"/>
					</ComboBox>
					<Button Style="{DynamicResource BlueGradientButtonStyle}" Content="Actions" Foreground="#FFFFFFFF" Height="24" IsEnabled="False" HorizontalAlignment="Left" Margin="20,161,0,0" VerticalAlignment="Top" Width="69"/>
					<TextBlock Height="19" FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="UBRN :" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="8,254,0,0" VerticalAlignment="Top" Width="Auto"/>
					<TextBlock Height="19" FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="Status :" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="10,466.5,0,0" VerticalAlignment="Top" Width="79"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="Referrer :" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="8,407.5,0,0" VerticalAlignment="Top" Width="79" Height="19"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="Provider :" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="10,349.5,0,0" VerticalAlignment="Top" Width="79" Height="19"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="Time :" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="8,314.5,0,0" VerticalAlignment="Top" Width="79" Height="19"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="Date :" TextWrapping="Wrap" HorizontalAlignment="Left" Margin="8,284.5,0,0" VerticalAlignment="Top" Width="79" Height="19"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="123-456-ABCD" TextWrapping="Wrap" Margin="69,254,0,266.5" VerticalAlignment="Stretch" x:Name="txtUBRN" HorizontalAlignment="Left" Width="92"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="5th Sep 2007" TextWrapping="Wrap" Margin="69,284.5,0,0" VerticalAlignment="Top" Height="19" x:Name="txtDate" HorizontalAlignment="Left" Width="80"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="9:00 am" TextWrapping="Wrap" Height="19" Margin="71,314.5,0,0" VerticalAlignment="Top" x:Name="txtTime" HorizontalAlignment="Left" Width="76"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="XYZ Clinic,   Pune ,Maharashtra" TextWrapping="WrapWithOverflow" Height="54" Margin="69,349.5,0,0" VerticalAlignment="Top" x:Name="txtProvider" HorizontalAlignment="Left" Width="96"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="John Doe, Ruby Hall Clinic" TextWrapping="Wrap" Height="55" Margin="71,407.5,0,0" VerticalAlignment="Top" x:Name="txtReferrer" HorizontalAlignment="Left" Width="94"/>
					<TextBlock FontSize="12" Foreground="{DynamicResource LightBlueFontBrush}" Text="Pending" TextWrapping="Wrap" Height="19" Margin="71,466.5,0,0" VerticalAlignment="Top" x:Name="txtStatus" HorizontalAlignment="Left" Width="78"/>
				</Grid>
			</ScrollViewer>
			<Border Margin="0,31.5,0,0" x:Name="PatientDetails" Background="#FFFFFFFF" RenderTransformOrigin="0.5,0.5" d:IsHidden="True">
				<Border.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1" ScaleY="1"/>
						<SkewTransform AngleX="0" AngleY="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform X="0" Y="0"/>
					</TransformGroup>
				</Border.RenderTransform>
				<Grid Width="Auto" Height="Auto">
					<Border Background="{DynamicResource ControlsHeaderBrush}" BorderThickness="0,0,0,1" VerticalAlignment="Top" Height="31.5">
						<TextBlock HorizontalAlignment="Left" Margin="5,3,0,0" Width="136" Height="24" Background="{x:Null}" FontSize="16" FontWeight="Bold" Foreground="#FF17509C" Text="Patient" TextWrapping="Wrap"/>
					</Border>
					<ScrollViewer Margin="0,31.5,0,0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
						<Grid Width="228.753" Height="Auto">
							<TextBlock Height="19" FontSize="12" Foreground="#FF0E376F" Text="First Name :" TextWrapping="Wrap" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,51,0,0"/>
							<TextBlock Height="Auto" FontSize="12" Foreground="#FF0E376F" Text="John" TextWrapping="Wrap" x:Name="txtFirstName" Margin="78,51,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="56.753"/>
							<TextBlock Height="19" FontSize="12" Foreground="#FF0E376F" TextWrapping="Wrap" Width="Auto" HorizontalAlignment="Left" Margin="9.32,102,0,0" VerticalAlignment="Top">Last Name :<LineBreak/><LineBreak/></TextBlock>
							<TextBlock Height="19" FontSize="12" Foreground="#FF0E376F" Text="E-mail :" TextWrapping="Wrap" Width="Auto" HorizontalAlignment="Left" Margin="9.32,154,0,0" VerticalAlignment="Top"/>
							<TextBlock Height="Auto" FontSize="12" Foreground="#FF0E376F" Text="johnthames@gmail.com" TextWrapping="Wrap" x:Name="txtEmail" Margin="78,153,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="141.963"/>
							<TextBlock FontSize="12" Foreground="#FF0E376F" Text="Address :" TextWrapping="Wrap" Width="Auto" HorizontalAlignment="Left" Margin="9.32,201,0,0" VerticalAlignment="Top" Height="Auto"/>
							<TextBlock FontSize="12" Foreground="#FF0E376F" Text="Hno 10, Oxford Street, Chicago, Illinois, USA" TextWrapping="Wrap" x:Name="txtAddress" d:LayoutOverrides="VerticalAlignment" Margin="78,201,0,245.383" HorizontalAlignment="Left" Width="120.963" Height="Auto"/>
							<TextBlock FontSize="12" Foreground="#FF0E376F" Text="Phone :" TextWrapping="Wrap" Width="Auto" HorizontalAlignment="Left" Margin="9.32,0,0,222.383" VerticalAlignment="Bottom" Height="19"/>
							<TextBlock FontSize="12" Foreground="#FF0E376F" Text="0123-267382933" TextWrapping="Wrap" Height="Auto" x:Name="txtPhoneNo" d:LayoutOverrides="Height" Margin="78,0,0,226.9" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="103.963"/>
							<TextBlock FontSize="12" Foreground="#FF0E376F" Text="Zip Code :" TextWrapping="Wrap" Width="Auto" Height="19" HorizontalAlignment="Left" Margin="9.32,0,0,169.796" VerticalAlignment="Bottom"/>
							<TextBlock FontSize="12" Foreground="#FF0E376F" Text="100101" TextWrapping="Wrap" Height="Auto" x:Name="txtZipcode" Margin="78,0,0,174.313" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="103.963"/>
							<Button x:Name="btnDonePatientDetails" Style="{DynamicResource BlueGradientButtonStyle}" Content="Done" Foreground="#FFFFFFFF" Width="67" Height="24" Click="btnDonePatientDetails_Click" HorizontalAlignment="Left" Margin="132.963,0,0,45" VerticalAlignment="Bottom"/>
							<TextBlock Height="Auto" FontSize="12" Foreground="#FF0E376F" Text="thames" TextWrapping="Wrap" x:Name="txtLastName" Margin="78,101,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="56.753"/>
						</Grid>
					</ScrollViewer>
				</Grid>
			</Border>
		</Grid>
	</Border>
</UserControl>